import request from '@/utils/request'

// 查询应用接入列表
export function listApplicationAccess(query) {
  return request({
    url: '/system/applicationAccess/list',
    method: 'get',
    params: query
  })
}

// 查询应用接入详细
export function getApplicationAccess(id) {
  return request({
    url: '/system/applicationAccess/' + id,
    method: 'get'
  })
}

// 新增应用接入
export function addApplicationAccess(data) {
  return request({
    url: '/system/applicationAccess',
    method: 'post',
    data: data
  })
}

// 修改应用接入
export function updateApplicationAccess(data) {
  return request({
    url: '/system/applicationAccess',
    method: 'put',
    data: data
  })
}

// 删除应用接入
export function delApplicationAccess(id) {
  return request({
    url: '/system/applicationAccess/' + id,
    method: 'delete'
  })
}
